<!DOCTYPE html>
<html lang="zh-cn">
<#include "../include/resource-head.ftl"/>
<link rel="stylesheet" href="/themes/plugins/fileinput/css/fileinput.min.css">
<body>
<#include "../include/common-header.ftl"/>
<div class="container col-center-block">
    <div class="order-info">
        <div class="order-item">
            <div class="order-item-top">
                <strong>${orderModel.addtime?string('yyyy-MM-dd HH:mm:ss')}</strong>&nbsp;&nbsp;&nbsp;
                <span>订单号:&nbsp;${orderModel.orderno!}</span>
                <a href="/order/detail/${orderModel.id}" class="pull-right">订单详情</a>
            </div>
        <#list orderModel.orderItemModelList as item>
            <div class="order-item-detail">
                <div class="col-xs-4">
                    <a href="/food/detail/${item.id}">
                        <img src="/data/${item.foodIcon!}" height="80px" width="80px">
                        <span>${item.foodName!}</span>
                    </a>
                </div>
                <div class="col-xs-2">
                    <span class="text-red">￥${item.foodPrice?string("##0.00")}</span>
                </div>
                <div class="col-xs-2">
                    <span>${item.count}</span>
                </div>
                <div class="col-xs-2">
                    <span class="text-red">￥${item.price?string("##0.00")}</span>
                </div>
            </div>
        </#list>
        </div>
        <div class="order-info-detail">
            <h4>订单信息</h4>
            <div class="order-info-box">
                <span class="col-xs-4">创建时间: ${orderModel.addtime?string('yyyy-MM-dd HH:mm:ss')}</span>
            <#if orderModel.evaluatetime??><span
                    class="col-xs-4">评价时间: ${orderModel.evaluatetime?string('yyyy-MM-dd HH:mm:ss')}</span></#if>
            </div>
            <div class="clearfix"></div>
            <br/>
            <h4>收货信息</h4>
            <div class="order-info-box">
                <p>收货人：${orderModel.receiveuser!}</p>
                <p>收货地址：${orderModel.receiveaddress!}</p>
                <p>备注：${orderModel.remark!}</p>
            </div>
            <div class="clearfix"></div>
            <br/>
            <div class="clearfix"></div>
        </div>
    </div>
</div>
<#include "../include/common-foot.ftl"/>
</body>
<#include "../include/resource-script.ftl"/>
</html>